#include "fact.h"

//Programmer: Nguyen Xuan Hoai
//Function: compute the factorial
//Input: a positive number
//Exception handing: none
//Algorithms: using recursion

long factorial(unsigned n)
{

  if (n<=1)
	   return 1;
  else
	   return n*factorial(n-1);
}
